#include "startwindow.h"
#include <QApplication>
#include <QMediaPlayer>
#include <QMediaPlaylist>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QMediaPlayer* player = new QMediaPlayer();

    QMediaPlaylist* list = new QMediaPlaylist();
    list->addMedia(QMediaContent(QUrl("qrc:/resources/resources/music.mp3")));
    list->setPlaybackMode(QMediaPlaylist::Loop);
    player->setPlaylist(list);
    player->play();

    StartWindow w;
    w.show();

    return a.exec();
}
